Using Face, Gaze, and Code Features Detected with Off-the-Shelf Equipment to Derive Student Emotion in an Introduction to Programming Context
Mario Carreon, Ko Watanabe, Tomokazu Matsui, Yuki Matsuda, Shoya Ishimaru, Hirohiko Suwa, Keiichi Yasumoto: “Using Face, Gaze, and Code Features Detected with Off-the-Shelf Equipment to Derive Student Emotion in an Introduction to Programming Context,” Research and Practice in Technology Enhanced Learning, Vol.22, pp.1-32, 2026.
Abstract
Students in an online Introduction to Programming (CS 1) class suffer a severe disadvantage. In a face-to-face learning environment, teachers can see if students struggle with the assigned programming task through their body language or overall demeanor. In online learning, all that the teachers see is a small image of their student, if at all, and are thus unable to provide the needed intervention to help the student overcome their stumbling block. Our research investigates extrapolating student emotion through a web camera and code logs gathered while students work on programming exercises, with a hardware-based gaze tracker to serve as ground truth for software-based gaze tracking. Code, face, and gaze data, together with annotated emotion data gathered from our experiments, were used to train learning models via XGBoost. Our best model can predict a student’s emotional state at a precision, recall, and F1-score of 72.7%, 77.3%, and 74.9%, respectively. We achieved these results from analyzing 8 hours and 20 minutes of experimental data from 26 participants using only software-based gaze tracking, with statistically similar results to hardware-based gaze tracking to within a ±8% equivalence margin.
Links
BibTeX
code:references.bib
@article{bib:mario_mariowindow_RPTEL2025,
author={Carreon, Mario and Watanabe, Ko and Matsui, Tomokazu and Matsuda, Yuki and Ishimaru, Shoya and Suwa, Hirohiko and Yasumoto, Keiichi},
title={{Using Face, Gaze, and Code Features Detected with Off-the-Shelf Equipment to Derive Student Emotion in an Introduction to Programming Context}},
journal={Research and Practice in Technology Enhanced Learning},
volume={22},
year={2026},
pages={1--32},
doi={10.58459/rptel.2027.22017}
}
https://scrapbox.io/files/6a16bfc565e24daf8cbc0ab6.png
Category
Keywords
Collaborating Organization